package com.design.model.builder;

/**
 * @program: study
 * @className: ConcreteBuilderA
 * @description: TODO
 * @author: kukuxiahuni
 * @create: 2019-07-11 11:13
 * @version: v1.0
 **/
public class ConcreteBuilderB extends Builder {

    private final Product product = new Product();

    @Override
    public void buildPartA() {
        this.product.add("partA");
    }

    @Override
    public void buildPartB() {
        this.product.add("partB");
    }

    @Override
    public Product getProduct() {
        return this.product;
    }
}
